package club.zhcs.capture.bean.dept;

import java.util.Date;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.lang.Times;

import com.dgj.utils.db.data.Entity;

/**
 * 合同
 * 
 * @author wkipy
 *
 */
@Table("gj_contract")
@Comment("合同表")
public class Contract extends Entity {

	@Column("c_project_id")
	@Comment("合同归属项目")
	private int projectId;

	@Name
	@Column("c_name")
	@Comment("合同名称")
	private String name;

	@Column("c_code")
	@Comment("合同编码")
	private String code;

	@Column("c_principal_id")
	@Comment("合同负责人id")
	private int principalId;

	@Column("c_des")
	@Comment("合同描述")
	@ColDefine(width = 500)
	private String description;

	@Column("c_sign_time")
	@Comment("合同签订时间")
	private Date signTime = Times.now();

	public int getProjectId() {
		return projectId;
	}

	public void setProjectId(int projectId) {
		this.projectId = projectId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public int getPrincipalId() {
		return principalId;
	}

	public void setPrincipalId(int principalId) {
		this.principalId = principalId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getSignTime() {
		return signTime;
	}

	public void setSignTime(Date signTime) {
		this.signTime = signTime;
	}

}
